﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ControlesAWIL
{
    public class VentanasEmergentes
    {

        //private static VentanaFIltro ventanaFiltro=null; 
        private static VentanaTextBox ventanaTextBox=null;
        //private static VentanaDataGridViewBuscar ventanaDataGridViewBuscar = null;
        //private static VentanaDataGridViewCopiar ventanaDataGridViewCopiar = null;
        
        private VentanasEmergentes(){}

        public static void Show(Exception exception)
        {
            System.Windows.Forms.MessageBox.Show(exception.Message,"ERROR",System.Windows.Forms.MessageBoxButtons.OK ,System.Windows.Forms.MessageBoxIcon.Error);
        }

        //public static VentanaFIltro getVentanaFIltro(){
        //    if (VentanasEmergentes.ventanaFiltro == null)
        //    {
        //        VentanasEmergentes.ventanaFiltro = new VentanaFIltro();
        //    }
        //    return VentanasEmergentes.ventanaFiltro;
        //}

        public static VentanaTextBox getVentanaTextBox()
        {
            if (VentanasEmergentes.ventanaTextBox == null)
            {
                VentanasEmergentes.ventanaTextBox = new VentanaTextBox();
            }
            return VentanasEmergentes.ventanaTextBox;
        }

        //public static VentanaDataGridViewCopiar getVentanaDataGridViewCopiar()
        //{
        //    if (VentanasEmergentes.ventanaDataGridViewCopiar == null)
        //    {
        //        VentanasEmergentes.ventanaDataGridViewCopiar = new VentanaDataGridViewCopiar();
        //    }
        //    return VentanasEmergentes.ventanaDataGridViewCopiar;
        //}

        //public static VentanaDataGridViewBuscar getVentanaDataGridViewBuscar()
        //{
        //    if (VentanasEmergentes.ventanaDataGridViewBuscar == null)
        //    {
        //        VentanasEmergentes.ventanaDataGridViewBuscar = new VentanaDataGridViewBuscar();
        //    }
        //    return VentanasEmergentes.ventanaDataGridViewBuscar;
        //}
    }
}
